package eventStrategies;

import stars.starGroups.StarGroupModel;
import eventManager.AppEvent;
import events.ECodeEventList;
import events.RemoveStarFromGroupEvent;

public class RemoveStarFromGroupStrategy extends IEventResponse {

	public RemoveStarFromGroupStrategy() {
		super(ECodeEventList.REMOVE_STAR_FROM_GROUP);		
	}

	@Override
	public void execute(AppEvent event) {
		RemoveStarFromGroupEvent fullEvent = (RemoveStarFromGroupEvent) event;
		StarGroupModel fullModel = (StarGroupModel) obj;
		fullModel.removeStar(fullEvent.star);		
	}

}
